<template>
  <div id="app">
    <el-button @click="handleDesigner">开始设计</el-button>
    <el-button @click="handleGenerator">解析数据</el-button>

    <FMDesigner v-if="showDesigner"  @closeDialog="closeDialog" />
    <FMGenerator v-if="showGenerator" @closeDialog="closeDialog"/>
  </div>
</template>

<script>
import FMDesigner from './components/fmDesigner';
import FMGenerator from './components/fmGenerator';
export default {
  name: 'App',
  components: {
    FMDesigner,
    FMGenerator
  },

  data() {
    return {
      showDesigner: false,
      showGenerator: false
    };
  },
  methods: {
    handleDesigner() {
      this.showDesigner = true;
    },
    closeDialog() {
      this.showDesigner = false;
      this.showGenerator = false;
    },
    handleGenerator() {
      this.showGenerator = true;
    }
  }
};
</script>

<style></style>
